<div>
	<div class="panel panel-primary ">
	   <div class="panel-heading p0 ">	
	      	<!-- 面包屑导航 -->
	       	<ol class="breadcrumb m0 nav-style">
				<li><a href="/#"><span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span> &nbsp;质量管理</a></li>
				<li class="active">质量修改</li>
			</ol>
	   </div>
		<div class=" panel-body">
		<div class="form-group">
			<button class="btn btn-primary" ng-click="submitInfo()">添加质量</button>
		</div>

			<table class="table table-striped table-bordered">
				<thead>
					<tr>
						<th>质量等级</th>
						<th>对应分数</th>
						<th>操作</th>
					</tr>
					
				</thead>
				<tbody>
					<tr ng-repeat="data in data">
						<td>{{data.name}}</td>
						<td><input   class="date-update"   type="text" value="{{data.score}}"></td>
						<td><button  id="{{data.id}}"  ng-click="update(data.id,$index)" class="btn  btn-xs   btn-primary">修改</button>
						<button  ng-click="submit(data.id)" class="btn btn-xs   btn-primary">删除</button>  </td>
					</tr>
					


				</tbody>
			</table>

		</div>





</div>



<!-- 添加分级模态框 -->
<div class="modal fade" id="addModel" >
        <div class="modal-dialog" style="width:40%;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">添加</h4>
                </div>
                <div class="modal-body col-xs-12">
                    <div class="form-group col-xs-12 ">
                        <label class="col-xs-2 control-label col-xs-offset-1">选项</label>
                        <div class="col-xs-5">
                            <input  type="text" class="form-control col-xs-2" placeholder="请输入选项名"  ng-model="insertname" >
                        </div>
                    </div>
                    <div class="form-group col-xs-12">
                        <label class="col-xs-2 control-label col-xs-offset-1">分数</label>
                        <div class="col-xs-7">
                            <input type="text" class="form-control col-xs-3" placeholder="请输入分数" ng-model="insertscore" >
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" ng-click="saveInfo()">保存</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->



<!-- 删除分级模态框 -->
<div class="modal fade" id="delemodal" >
        <div class="modal-dialog" style="width:40%;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">删除</h4>
                </div>
                <div class="modal-body col-xs-12">
                    <p>确认要删除吗？</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" ng-click="delete()">确认</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->



    
<!-- 失败模态框 -->
<div class="modal fade " id="badmodal">
  <div class="modal-dialog" style="width: 300px;"> 
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">失败</h4>
      </div>
      <div class="modal-body">	
      	<span id="idNumber" ></span>
        <p>操作失败</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">确认</button>
        
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal-->
